package com.rts.enums;

/**
 * @author:weizhang
 * @date: 2020-03-31
 * @modify:
 * @des: 枚举状态码
 */
public enum ErrorCode {

    SUCCESS(0, "成功！"),
    FAIL(999, "失败，未知错误！");

    /**
     * 响应状态码
     */
    private final int code;

    /**
     * 响应提示
     */
    private final String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
